//
//  CZCommentNoneCell.swift
//  GZWeibo007
//
//  Created by Raymond on 15/12/24.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit
/// 没有人评论的cell
class CZCommentNoneCell: UITableViewCell {

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        prepareUI()
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func prepareUI() {
        textLabel?.text = "还没有人评论"
        textLabel?.textColor = UIColor.lightGrayColor()
        textLabel?.textAlignment = NSTextAlignment.Center
        contentView.backgroundColor = UIColor.whiteColor()
        selectionStyle = UITableViewCellSelectionStyle.None
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        textLabel?.center = contentView.center
    }
    

}
